<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>你的旅行风格是什么？寻找完美旅伴 - 兴趣社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #6366f1;
            --primary-light: #f0f9ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }
        
        .section-subtitle {
            color: var(--secondary);
            max-width: 800px;
        }
        
        /* 测试头部 */
        .test-header {
            background-color: white;
            border-radius: 1rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .test-banner {
            height: 300px;
            position: relative;
        }
        
        .test-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .test-banner-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            padding: 2rem;
            color: white;
        }
        
        .test-category {
            display: inline-block;
            background-color: rgba(255,255,255,0.2);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
        }
        
        .test-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .test-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .test-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .test-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
        }
        
        .author-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-light);
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .author-bio {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .author-stats {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        .test-actions {
            display: flex;
            gap: 1rem;
        }
        
        /* 主要内容区 */
        .main-content {
            display: flex;
            gap: 2rem;
        }
        
        .test-content {
            flex: 0 0 70%;
        }
        
        .sidebar {
            flex: 0 0 calc(30% - 2rem);
        }
        
        /* 测试详情卡片 */
        .test-card {
            background-color: white;
            border-radius: 1rem;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .card-title i {
            color: var(--primary);
        }
        
        .test-description {
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        
        .test-details {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .detail-item {
            display: flex;
            flex-direction: column;
        }
        
        .detail-label {
            color: var(--secondary);
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
        }
        
        .detail-value {
            font-weight: 500;
        }
        
        .test-preview {
            background-color: var(--light);
            border-radius: 0.75rem;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }
        
        .preview-question {
            font-weight: 500;
            margin-bottom: 1rem;
        }
        
        .preview-options {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .preview-option {
            background-color: white;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .preview-option:hover {
            border-color: var(--primary);
            background-color: var(--primary-light);
        }
        
        /* 测试按钮 */
        .take-test-btn {
            display: block;
            width: 100%;
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 1.1rem;
            text-align: center;
            transition: background-color 0.2s;
            margin-bottom: 1rem;
        }
        
        .take-test-btn:hover {
            background-color: #4f46e5;
            color: white;
            text-decoration: none;
        }
        
        /* 分享区域 */
        .share-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .share-text {
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .share-buttons {
            display: flex;
            gap: 0.75rem;
        }
        
        .share-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--light);
            color: var(--secondary);
            transition: all 0.2s;
        }
        
        .share-btn:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 结果预览 */
        .result-preview {
            margin-top: 1.5rem;
        }
        
        .result-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
        }
        
        .result-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .result-info {
            flex: 1;
        }
        
        .result-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .result-type {
            font-size: 0.85rem;
            color: var(--primary);
            background-color: var(--primary-light);
            display: inline-block;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
        }
        
        .result-compatibility {
            text-align: right;
            font-weight: 600;
            color: var(--success);
        }
        
        /* 评论区 */
        .comments-section {
            background-color: white;
            border-radius: 1rem;
            box-shadow: var(--shadow);
            padding: 1.5rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .comments-sort {
            color: var(--secondary);
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .comment-form {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-container {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            padding: 1rem;
            resize: none;
            min-height: 100px;
            font-family: inherit;
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 1rem;
        }
        
        .cancel-comment {
            background: none;
            border: none;
            color: var(--secondary);
            cursor: pointer;
        }
        
        .post-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .post-comment:hover {
            background-color: #4f46e5;
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        .comment-text {
            margin-bottom: 0.75rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary);
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复区 */
        .replies-list {
            margin-top: 1rem;
            margin-left: 2rem;
            padding-left: 1rem;
            border-left: 2px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        .reply-author {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .reply-time {
            font-size: 0.75rem;
            color: var(--secondary);
        }
        
        .reply-text {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-input {
            flex: 1;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.75rem;
            resize: none;
            min-height: 80px;
            font-family: inherit;
            font-size: 0.9rem;
        }
        
        /* 侧边栏 */
        .sidebar-card {
            background-color: white;
            border-radius: 1rem;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .similar-tests {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        
        .similar-test-item {
            display: flex;
            gap: 1rem;
            transition: transform 0.2s;
        }
        
        .similar-test-item:hover {
            transform: translateX(5px);
        }
        
        .similar-test-image {
            width: 80px;
            height: 80px;
            border-radius: 0.5rem;
            object-fit: cover;
        }
        
        .similar-test-info {
            flex: 1;
        }
        
        .similar-test-title {
            font-weight: 500;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .similar-test-meta {
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        /* 热门标签 */
        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .tag-item {
            background-color: var(--light);
            color: var(--secondary);
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .tag-item:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
            }
            
            .test-content, .sidebar {
                flex: none;
                width: 100%;
            }
            
            .test-banner {
                height: 220px;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.75rem;
            }
            
            .test-title {
                font-size: 1.5rem;
            }
            
            .test-meta {
                flex-wrap: wrap;
                gap: 1rem 1.5rem;
            }
            
            .test-author {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .test-actions {
                width: 100%;
                margin-top: 1rem;
            }
            
            .test-actions button {
                flex: 1;
            }
            
            .test-details {
                grid-template-columns: 1fr 1fr;
            }
            
            .result-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .result-compatibility {
                align-self: flex-end;
                margin-top: -2rem;
            }
        }
        
        @media (max-width: 576px) {
            .test-banner {
                height: 180px;
            }
            
            .test-banner-overlay {
                padding: 1.5rem 1rem;
            }
            
            .test-details {
                grid-template-columns: 1fr;
            }
            
            .comment-form {
                flex-direction: column;
            }
            
            .user-avatar {
                align-self: flex-start;
            }
            
            .similar-test-item {
                flex-direction: column;
            }
            
            .similar-test-image {
                width: 100%;
                height: 120px;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-compass text-primary me-2"></i>兴趣社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">社区</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <div class="section-header">
            <a href="#" class="text-secondary mb-2 d-inline-block">
                <i class="fas fa-arrow-left me-1"></i> 返回测试列表
            </a>
            <h1 class="section-title">你的旅行风格是什么？寻找完美旅伴</h1>
            <p class="section-subtitle">通过12道题测试你的旅行偏好：你是冒险探索者、文化体验者还是休闲放松派？找到与你旅行风格最匹配的伙伴。</p>
        </div>
        
        <!-- 测试头部 -->
        <div class="test-header">
            <div class="test-banner">
                <img src="https://picsum.photos/1200/400?random=20" alt="旅行风格测试封面图">
                <div class="test-banner-overlay">
                    <span class="test-category">旅行 · 性格</span>
                    <h2 class="test-title">你的旅行风格是什么？寻找完美旅伴</h2>
                    <div class="test-meta">
                        <div class="test-meta-item">
                            <i class="far fa-clock"></i>
                            <span>8分钟完成</span>
                        </div>
                        <div class="test-meta-item">
                            <i class="fas fa-user-check"></i>
                            <span>5,321人已测试</span>
                        </div>
                        <div class="test-meta-item">
                            <i class="fas fa-star text-warning"></i>
                            <span>4.8分 (1,254评价)</span>
                        </div>
                        <div class="test-meta-item">
                            <i class="far fa-calendar-alt"></i>
                            <span>发布于 2周前</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="test-author">
                <img src="https://picsum.photos/100/100?random=101" alt="张雨晴的头像" class="author-avatar">
                <div class="author-info">
                    <div class="author-name">张雨晴</div>
                    <div class="author-bio">旅行博主 · 足迹遍布30+国家 · 自由摄影师</div>
                    <div class="author-stats">
                        <div><i class="fas fa-user-friends me-1"></i> 2.4k 粉丝</div>
                        <div><i class="fas fa-file-alt me-1"></i> 18 个测试</div>
                        <div><i class="fas fa-star text-warning me-1"></i> 4.9 平均分</div>
                    </div>
                </div>
                <div class="test-actions">
                    <button class="btn btn-outline-primary">
                        <i class="fas fa-user-plus me-1"></i> 关注
                    </button>
                    <button class="btn btn-primary">
                        <i class="fas fa-comment me-1"></i> 私信
                    </button>
                </div>
            </div>
        </div>
        
        <div class="main-content">
            <!-- 左侧测试内容 -->
            <div class="test-content">
                <!-- 测试详情 -->
                <div class="test-card">
                    <h3 class="card-title">
                        <i class="fas fa-info-circle"></i> 测试详情
                    </h3>
                    <div class="test-description">
                        每个人的旅行方式都独具特色 - 有些人喜欢冒险探索未知，有些人偏爱沉浸在当地文化中，还有些人则追求彻底的放松与享受。这个测试将通过12个精心设计的问题，分析你的旅行习惯、偏好和价值观，最终揭示你的旅行风格类型。
                        <br><br>
                        完成测试后，你不仅能更了解自己的旅行偏好，还能发现与你旅行风格高度匹配的潜在旅伴，一起规划完美的旅程！
                    </div>
                    
                    <div class="test-details">
                        <div class="detail-item">
                            <span class="detail-label">测试类型</span>
                            <span class="detail-value">性格与偏好</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">问题数量</span>
                            <span class="detail-value">12题</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">预计时间</span>
                            <span class="detail-value">8分钟</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">发布日期</span>
                            <span class="detail-value">2023-06-15</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">更新日期</span>
                            <span class="detail-value">2023-06-20</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">隐私设置</span>
                            <span class="detail-value">结果可被匹配者查看</span>
                        </div>
                    </div>
                    
                    <h3 class="card-title mt-3">
                        <i class="fas fa-question-circle"></i> 问题预览
                    </h3>
                    <div class="test-preview">
                        <div class="preview-question">1. 你更倾向于如何规划旅行？</div>
                        <div class="preview-options">
                            <div class="preview-option">详细规划每一天的行程，提前预订所有项目</div>
                            <div class="preview-option">只规划大致方向，每天随机探索</div>
                            <div class="preview-option">介于两者之间，有计划但保留灵活性</div>
                        </div>
                    </div>
                    
                    <div class="test-preview">
                        <div class="preview-question">2. 在旅行中，你最看重的是什么？</div>
                        <div class="preview-options">
                            <div class="preview-option">体验当地文化和历史</div>
                            <div class="preview-option">品尝当地美食</div>
                            <div class="preview-option">欣赏自然风光</div>
                            <div class="preview-option">放松休息，远离工作</div>
                        </div>
                    </div>
                    
                    <a href="#" class="take-test-btn">
                        <i class="fas fa-play-circle me-2"></i>开始测试，寻找旅伴
                    </a>
                    
                    <div class="share-section">
                        <span class="share-text">分享给好友一起测试：</span>
                        <div class="share-buttons">
                            <a href="#" class="share-btn" title="微信分享">
                                <i class="fab fa-weixin"></i>
                            </a>
                            <a href="#" class="share-btn" title="微博分享">
                                <i class="fab fa-weibo"></i>
                            </a>
                            <a href="#" class="share-btn" title="QQ分享">
                                <i class="fab fa-qq"></i>
                            </a>
                            <a href="#" class="share-btn" title="复制链接">
                                <i class="fas fa-link"></i>
                            </a>
                            <a href="#" class="share-btn" title="更多分享方式">
                                <i class="fas fa-ellipsis-h"></i>
                            </a>
                        </div>
                    </div>
                </div>
                
                <!-- 匹配结果预览 -->
                <div class="test-card">
                    <h3 class="card-title">
                        <i class="fas fa-user-friends"></i> 与你潜在匹配的测试者
                    </h3>
                    <p class="text-secondary mb-3">完成测试后，你将看到与你旅行风格最匹配的用户</p>
                    
                    <div class="result-preview">
                        <div class="result-item">
                            <img src="https://picsum.photos/100/100?random=201" alt="王浩的头像" class="result-avatar">
                            <div class="result-info">
                                <div class="result-name">王浩</div>
                                <div class="result-type">冒险探索者</div>
                            </div>
                            <div class="result-compatibility">96%</div>
                        </div>
                        
                        <div class="result-item">
                            <img src="https://picsum.photos/100/100?random=202" alt="林小雨的头像" class="result-avatar">
                            <div class="result-info">
                                <div class="result-name">林小雨</div>
                                <div class="result-type">文化体验者</div>
                            </div>
                            <div class="result-compatibility">92%</div>
                        </div>
                        
                        <div class="result-item">
                            <img src="https://picsum.photos/100/100?random=203" alt="陈思远的头像" class="result-avatar">
                            <div class="result-info">
                                <div class="result-name">陈思远</div>
                                <div class="result-type">休闲放松派</div>
                            </div>
                            <div class="result-compatibility">88%</div>
                        </div>
                    </div>
                </div>
                
                <!-- 评论区 -->
                <div class="comments-section">
                    <div class="comments-header">
                        <div class="comments-count">
                            <i class="fas fa-comments text-primary"></i>
                            <span>248 条评论</span>
                        </div>
                        <div class="comments-sort">
                            <i class="fas fa-sort me-1"></i>
                            最新评论
                        </div>
                    </div>
                    
                    <div class="comment-form">
                        <img src="https://picsum.photos/100/100?random=300" alt="当前用户头像" class="user-avatar">
                        <div class="comment-input-container">
                            <textarea class="comment-input" placeholder="分享你的旅行风格或测试体验..."></textarea>
                            <div class="comment-actions">
                                <button class="cancel-comment">取消</button>
                                <button class="post-comment">发布评论</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <!-- 评论1 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/100/100?random=301" alt="李明亮的头像" class="user-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">李明亮</div>
                                    <div class="comment-time">2小时前</div>
                                </div>
                                <div class="comment-text">
                                    这个测试太准了！我测试出来是"冒险探索者"，确实每次旅行都喜欢去一些小众路线，探索不为人知的地方。通过这个测试认识了三个志同道合的朋友，已经约好下个月一起去徒步了！
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action liked">
                                        <i class="fas fa-heart"></i>
                                        <span>42</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <img src="https://picsum.photos/100/100?random=101" alt="张雨晴的头像" class="reply-avatar">
                                        <div class="reply-content">
                                            <div class="reply-header">
                                                <div class="reply-author">张雨晴 <span class="text-primary">(作者)</span></div>
                                                <div class="reply-time">1小时前</div>
                                            </div>
                                            <div class="reply-text">
                                                太棒了！很高兴这个测试能帮你找到旅伴，期待听到你们的旅行故事~
                                            </div>
                                            <div class="reply-actions">
                                                <div class="comment-action">
                                                    <i class="far fa-heart"></i>
                                                    <span>18</span>
                                                </div>
                                                <div class="comment-action reply-btn">
                                                    <i class="far fa-comment"></i>
                                                    <span>回复</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <div class="reply-item">
                                        <img src="https://picsum.photos/100/100?random=305" alt="赵小川的头像" class="reply-avatar">
                                        <div class="reply-content">
                                            <div class="reply-header">
                                                <div class="reply-author">赵小川</div>
                                                <div class="reply-time">45分钟前</div>
                                            </div>
                                            <div class="reply-text">
                                                我也是冒险探索者！最近在计划去云南的徒步路线，有兴趣一起吗？
                                            </div>
                                            <div class="reply-actions">
                                                <div class="comment-action">
                                                    <i class="far fa-heart"></i>
                                                    <span>5</span>
                                                </div>
                                                <div class="comment-action reply-btn">
                                                    <i class="far fa-comment"></i>
                                                    <span>回复</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复表单 -->
                                    <div class="reply-form" style="display: none;">
                                        <img src="https://picsum.photos/100/100?random=300" alt="当前用户头像" class="reply-avatar">
                                        <div class="comment-input-container">
                                            <textarea class="reply-input" placeholder="回复 @李明亮..."></textarea>
                                            <div class="comment-actions">
                                                <button class="cancel-comment">取消</button>
                                                <button class="post-comment">回复</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论2 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/100/100?random=302" alt="陈佳的头像" class="user-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">陈佳</div>
                                    <div class="comment-time">昨天 15:32</div>
                                </div>
                                <div class="comment-text">
                                    问题设计得很用心，不是那种随便就能猜到答案的测试。我一直以为自己喜欢休闲旅行，但测试结果显示我其实更偏向文化体验型，仔细想想确实是这样，每次旅行都会优先安排博物馆和历史景点。
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action">
                                        <i class="far fa-heart"></i>
                                        <span>27</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 评论3 -->
                        <div class="comment-item">
                            <img src="https://picsum.photos/100/100?random=303" alt="王梓涵的头像" class="user-avatar">
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">王梓涵</div>
                                    <div class="comment-time">3天前</div>
                                </div>
                                <div class="comment-text">
                                    测试结果把我和刘阳匹配到了一起，发现我们不仅旅行风格相似，而且都住在同一个城市！已经约好这周末见面聊聊旅行计划，太神奇了！
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action liked">
                                        <i class="fas fa-heart"></i>
                                        <span>56</span>
                                    </div>
                                    <div class="comment-action reply-btn">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                                
                                <!-- 回复区 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <img src="https://picsum.photos/100/100?random=304" alt="刘阳的头像" class="reply-avatar">
                                        <div class="reply-content">
                                            <div class="reply-header">
                                                <div class="reply-author">刘阳</div>
                                                <div class="reply-time">2天前</div>
                                            </div>
                                            <div class="reply-text">
                                                哈哈，太期待周末见面了！已经整理了几个想去的地方，到时候一起讨论~
                                            </div>
                                            <div class="reply-actions">
                                                <div class="comment-action liked">
                                                    <i class="fas fa-heart"></i>
                                                    <span>12</span>
                                                </div>
                                                <div class="comment-action reply-btn">
                                                    <i class="far fa-comment"></i>
                                                    <span>回复</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 加载更多评论 -->
                    <div class="text-center mt-4">
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-comment-dots me-1"></i> 加载更多评论
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="sidebar">
                <!-- 测试操作 -->
                <div class="sidebar-card">
                    <h3 class="card-title">
                        <i class="fas fa-cog"></i> 测试操作
                    </h3>
                    <div class="d-grid gap-2 mb-3">
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-bookmark me-1"></i> 收藏测试
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-share-alt me-1"></i> 分享测试
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-flag me-1"></i> 举报测试
                        </button>
                    </div>
                    
                    <div class="text-center text-secondary text-sm">
                        <p>上次测试：未参与过</p>
                        <p>你的测试结果：暂无</p>
                    </div>
                </div>
                
                <!-- 相似测试 -->
                <div class="sidebar-card">
                    <h3 class="card-title">
                        <i class="fas fa-th-list"></i> 相似测试
                    </h3>
                    <div class="similar-tests">
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=401" alt="背包旅行测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">背包旅行风格测试：你是哪种背包客？</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 3.2k人测试
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=402" alt="旅行预算测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">旅行预算观测试：你是节俭型还是享受型？</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 2.8k人测试
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=403" alt="旅行目的地测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">理想旅行目的地测试：哪里最适合你？</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 4.5k人测试
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=404" alt="旅行摄影测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">旅行摄影风格测试：记录美好瞬间</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 1.9k人测试
                                </div>
                            </div>
                        </a>
                    </div>
                    
                    <div class="text-center mt-3">
                        <a href="#" class="text-primary text-sm">查看更多 <i class="fas fa-angle-right"></i></a>
                    </div>
                </div>
                
                <!-- 热门标签 -->
                <div class="sidebar-card">
                    <h3 class="card-title">
                        <i class="fas fa-tags"></i> 热门标签
                    </h3>
                    <div class="tags-list">
                        <div class="tag-item">旅行</div>
                        <div class="tag-item">旅伴</div>
                        <div class="tag-item">性格测试</div>
                        <div class="tag-item">冒险</div>
                        <div class="tag-item">文化体验</div>
                        <div class="tag-item">休闲度假</div>
                        <div class="tag-item">户外</div>
                        <div class="tag-item">城市探索</div>
                        <div class="tag-item">美食旅行</div>
                        <div class="tag-item">摄影</div>
                        <div class="tag-item">独自旅行</div>
                        <div class="tag-item">团队旅行</div>
                    </div>
                </div>
                
                <!-- 测试作者的其他测试 -->
                <div class="sidebar-card">
                    <h3 class="card-title">
                        <i class="fas fa-user"></i> 作者的其他测试
                    </h3>
                    <div class="similar-tests">
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=501" alt="美食偏好测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">全球美食偏好测试：你的味蕾属于哪个国家？</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 4.1k人测试
                                </div>
                            </div>
                        </a>
                        
                        <a href="#" class="similar-test-item text-decoration-none text-dark">
                            <img src="https://picsum.photos/200/200?random=502" alt="旅行摄影测试图片" class="similar-test-image">
                            <div class="similar-test-info">
                                <div class="similar-test-title">旅行摄影风格测试：你是哪种摄影师？</div>
                                <div class="similar-test-meta">
                                    <i class="fas fa-user-check me-1"></i> 2.7k人测试
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 评论点赞功能
            document.querySelectorAll('.comment-action:not(.reply-btn)').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('liked')) {
                        // 取消点赞
                        this.classList.remove('liked');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        
                        // 更新点赞数
                        if (this.textContent.trim().match(/\d+/)) {
                            let count = parseInt(this.textContent.trim().match(/\d+/)[0]);
                            this.innerHTML = `<i class="${icon.classList.value}"></i> <span>${count - 1}</span>`;
                        }
                    } else {
                        // 点赞
                        this.classList.add('liked');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        
                        // 更新点赞数
                        if (this.textContent.trim().match(/\d+/)) {
                            let count = parseInt(this.textContent.trim().match(/\d+/)[0]);
                            this.innerHTML = `<i class="${icon.classList.value}"></i> <span>${count + 1}</span>`;
                        }
                    }
                });
            });
            
            // 回复按钮功能
            document.querySelectorAll('.reply-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    // 隐藏所有回复表单
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.style.display = 'none';
                    });
                    
                    // 显示当前评论下的回复表单
                    const replyForm = this.closest('.comment-content, .reply-content').nextElementSibling?.querySelector('.reply-form') || 
                                     this.closest('.comment-item, .reply-item').querySelector('.replies-list .reply-form');
                    
                    if (replyForm) {
                        replyForm.style.display = 'flex';
                        replyForm.querySelector('textarea').focus();
                    } else {
                        // 如果没有回复表单，则创建一个
                        const repliesList = this.closest('.comment-content, .reply-content').querySelector('.replies-list') || 
                                          (() => {
                                              const div = document.createElement('div');
                                              div.className = 'replies-list';
                                              this.closest('.comment-content, .reply-content').appendChild(div);
                                              return div;
                                          })();
                        
                        // 创建回复表单
                        const authorName = this.closest('.comment-content, .reply-content').querySelector('.comment-author, .reply-author')?.textContent || '用户';
                        const formHTML = `
                            <div class="reply-form" style="display: flex;">
                                <img src="https://picsum.photos/100/100?random=300" alt="当前用户头像" class="reply-avatar">
                                <div class="comment-input-container">
                                    <textarea class="reply-input" placeholder="回复 @${authorName}..."></textarea>
                                    <div class="comment-actions">
                                        <button class="cancel-comment">取消</button>
                                        <button class="post-comment">回复</button>
                                    </div>
                                </div>
                            </div>
                        `;
                        
                        repliesList.insertAdjacentHTML('beforeend', formHTML);
                        
                        // 为新创建的取消按钮添加事件
                        repliesList.querySelector('.cancel-comment').addEventListener('click', function() {
                            this.closest('.reply-form').style.display = 'none';
                        });
                        
                        // 为新创建的发布按钮添加事件
                        repliesList.querySelector('.post-comment').addEventListener('click', function() {
                            // 这里可以添加发布回复的逻辑
                            alert('回复功能：在实际应用中，这里会提交回复内容');
                            this.closest('.reply-form').style.display = 'none';
                        });
                    }
                });
            });
            
            // 取消回复按钮功能
            document.querySelectorAll('.cancel-comment').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-form, .comment-form').querySelector('textarea').value = '';
                    if (this.closest('.reply-form')) {
                        this.closest('.reply-form').style.display = 'none';
                    }
                });
            });
            
            // 发布评论按钮功能
            document.querySelectorAll('.post-comment').forEach(btn => {
                btn.addEventListener('click', function() {
                    const textarea = this.closest('.comment-input-container').querySelector('textarea');
                    if (textarea.value.trim() === '') {
                        alert('请输入评论内容');
                        return;
                    }
                    
                    // 这里可以添加发布评论的逻辑
                    alert('评论功能：在实际应用中，这里会提交评论内容');
                    
                    // 清空输入框
                    textarea.value = '';
                    
                    // 如果是回复，隐藏回复表单
                    if (this.closest('.reply-form')) {
                        this.closest('.reply-form').style.display = 'none';
                    }
                });
            });
            
            // 分享按钮功能
            document.querySelectorAll('.share-btn').forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    const title = this.getAttribute('title');
                    alert(`分享功能：${title} - 在实际应用中，这里会触发相应的分享操作`);
                });
            });
            
            // 测试操作按钮功能
            document.querySelectorAll('.sidebar-card .btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const action = this.textContent.trim().replace(/\s+/g, ' ');
                    alert(`操作：${action} - 在实际应用中，这里会执行相应的操作`);
                });
            });
            
            // 加载更多评论按钮功能
            document.querySelector('.sidebar + .btn').addEventListener('click', function() {
                alert('加载更多评论：在实际应用中，这里会加载更多评论数据');
            });
        });
    </script>
</body>
</html>
    
